﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp1
{
    [Table(Name = "PO_poMain")]
    public class clsPoMain
    {

        private string _cPOID = "123";
        [Column]
        public String cPOID 
        { 
            get { return _cPOID; } 
            set { _cPOID = value; } 
        }

        [Column]
        public DateTime? dPODate { get; set; }

        [Column]
        public String cVenCode { get; set; }

        [Column]
        public String cDepCode { get; set; }

        [Column]
        public String cPersonCode { get; set; }

        [Column]
        public String cPTCode { get; set; }

        [Column]
        public String cArrivalPlace { get; set; }

        [Column]
        public String cSCCode { get; set; }

        [Column]
        public String cexch_name { get; set; }

        [Column]
        public String cPayCode { get; set; }

        [Column]
        public String cMemo { get; set; }

        [Column]
        public String cPeriod { get; set; }

        [Column]
        public String cMaker { get; set; }

        [Column]
        public String cVerifier { get; set; }

        [Column]
        public String cCloser { get; set; }

        [Column]
        public String cDefine1 { get; set; }

        [Column]
        public String cDefine2 { get; set; }

        [Column]
        public String cDefine3 { get; set; }

        [Column]
        public DateTime? cDefine4 { get; set; }

        [Column]
        public int? cDefine5 { get; set; }

        [Column]
        public DateTime? cDefine6 { get; set; }

        [Column]
        public String cDefine8 { get; set; }

        [Column]
        public String cDefine9 { get; set; }

        [Column]
        public String cDefine10 { get; set; }

        [Column(IsPrimaryKey = true)]
        public int POID { get; set; }

        [Column]
        public int? iVTid { get; set; }

        [Column]
        public String cChanger { get; set; }

        [Column]
        public String cBusType { get; set; }

        [Column]
        public String cDefine11 { get; set; }

        [Column]
        public String cDefine12 { get; set; }

        [Column]
        public String cDefine13 { get; set; }

        [Column]
        public String cDefine14 { get; set; }

        [Column]
        public int? cDefine15 { get; set; }

        [Column]
        public String cLocker { get; set; }

        [Column]
        public int? iverifystateex { get; set; }

        [Column]
        public int? ireturncount { get; set; }

        public bool IsWfControlled { get; set; }

        [Column]
        public DateTime? cmaketime { get; set; }

        [Column]
        public DateTime? cModifyTime { get; set; }

        [Column]
        public DateTime? cAuditTime { get; set; }

        [Column]
        public DateTime? cAuditDate { get; set; }

        [Column]
        public DateTime? cModifyDate { get; set; }

        [Column]
        public String cReviser { get; set; }

        [Column]
        public String cVenPUOMProtocol { get; set; }

        [Column]
        public String cChangVerifier { get; set; }

        [Column]
        public DateTime? cChangAuditTime { get; set; }

        [Column]
        public DateTime? cChangAuditDate { get; set; }

        [Column]
        public String cBG_Auditor { get; set; }

        [Column]
        public String cBG_AuditTime { get; set; }

        [Column]
        public int? iflowid { get; set; }

        [Column]
        public int? iPrintCount { get; set; }

        [Column]
        public DateTime? dCloseDate { get; set; }

        [Column]
        public DateTime? dCloseTime { get; set; }

        [Column]
        public String ccleanver { get; set; }

        [Column]
        public String cContactCode { get; set; }

        [Column]
        public String cVenPerson { get; set; }

        [Column]
        public String cVenBank { get; set; }

        [Column]
        public String cVenAccount { get; set; }

        [Column]
        public String cappcode { get; set; }

        [Column]
        public String csysbarcode { get; set; }

        [Column]
        public String cCurrentAuditor { get; set; }

        [Column]
        public String cGCRouteCode { get; set; }

        public bool bGCTransforming { get; set; }

    }


}
